from rest_framework.viewsets import ModelViewSet
from . import spec_serializers
from goods.models import SPUSpecification
from meiduo_admin.my_paginate import MyPageNumberPagination
class SpecViewset(ModelViewSet):
    pagination_class = MyPageNumberPagination
    serializer_class = spec_serializers.SpecViewSetSerializer
    queryset = SPUSpecification.objects.all()
